package com.webcamtracker.image.color.rgb;

import com.webcamtracker.image.Color;

import java.awt.image.BufferedImage;

public class RGBColorSampler implements ColorSampler {

    public Color getColorAt(BufferedImage image, int i, int e) {
        int rgb = image.getRGB(i, e);
        return new RGBColor(rgb);
    }

    public Color getColorFrom(RGBColor color) {
        return color;
    }
}
